﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditServer
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 <link href="../../Content/Admin/control.css" rel="stylesheet" type="text/css" />
     <link href="../../Content/template.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine-vi.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine.js" type="text/javascript"></script>
    <script>
        $(document).ready(function () {
            $("#formID").validationEngine();
        });
    </script>
    <form method="post" action="/Server/EditServer" id="formID">
      <%if (ViewData["listserverid"] != null)
      { %>
      <table>
   <%foreach (VgoCardChange.Models.Objects.Server sv in (List<VgoCardChange.Models.Objects.Server>)ViewData["listserverid"])
     { %>
      
      <tr><td> Mã server</td><td><input value="<%: sv.ServerID %>" name="ServerID" readonly="readonly" /></td></tr> 
         <tr> <td>Tên server</td><td><input value="<%: sv.ServerName %>" name="ServerName" class="validate[required]" /></td> 
       </tr> 
        <tr> <td>Ghi nhớ</td><td><input value="<%: sv.Desciption%>" name="Description" /></td> 
       </tr> 
       <tr><td>Loại game</td><td><%if (ViewData["listgame"] != null)
                            { %><%:Html.DropDownList("listgame", "--chọn game--")%><%} %></td></tr>
       <%-- Mã Quyền: <input value="<%: tv.MaQuyen %>" name="MaQuyen" />--%>
    <%} %>
    </table>
   <%} %>
   <div class="Control">
  <input type="submit" value="Ghi lại" class="vadd" />
  <%:Html.ActionLink("Trở lại", "GetServers", "Server", new { @class="vback"})%>
  </div>

</asp:Content>
